package com.way.fileexplorer.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.way.fileexplorer.R;

abstract public class BaseFragment extends Fragment {
    protected static final String KEY_CURRENT_PATH = "current";
    protected static final String KEY_TOP_PATH = "top";
    protected String mCurrentString;
    protected String mTopString;
    protected boolean mEnableExit;

    /**
     * Our fragment has onBackPressed now, we can use it to pop folder
     * 
     * @return return if allow finish the activity
     */
    abstract public boolean onBackPressed();

    public String getCurrentString() {
        return mCurrentString;
    }

    public String getTopString() {
        return mTopString;
    }
    
    public int getIcon(){
    	return R.drawable.main_fast;
    }
    
    public boolean hidePath(){
    	return false;
    }

    /**
     * Restore exploring, after screenSize or rotation.
     */
    abstract public void restoreExplore(Bundle data);

    abstract public void onFolderChanged();
}
